home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWPart / Include / FWInsCmd.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.1 KB  |  82 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWInsCmd.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWINSCMD_H
  11. #define FWINSCMD_H
  12.  
  13. #ifndef FWCMD_H
  14. #include "FWCmd.h"
  15. #endif
  16.  
  17. #ifndef FWFILESP_H
  18. #include "FWFileSp.h"
  19. #endif
  20.  
  21. // ----- OpenDoc Includes -----
  22.  
  23. #ifndef FWODTYPS_H
  24. #include "FWODTyps.h"
  25. #endif
  26.  
  27. //========================================================================================
  28. //    Forward Declarations
  29. //========================================================================================
  30.  
  31. class FW_CPart;
  32. class FW_CFrame;
  33. class FW_CEmbeddingFrame;
  34.  
  35. //========================================================================================
  36. // class FW_CInsertCommand
  37. //========================================================================================
  38.  
  39. class FW_CInsertCommand : public FW_CCommand
  40. {
  41. public:
  42.     FW_DECLARE_AUTO(FW_CInsertCommand)
  43.  
  44. //----------------------------------------------------------------------------------------
  45. //    Constructors/Destructor
  46. //
  47. public:
  48.     FW_CInsertCommand(Environment* ev,
  49.                     FW_CEmbeddingFrame* frame,
  50.                     const FW_PFileSpecification& fileSpec,
  51.                     FW_Boolean canUndo);
  52.         // Constructor: undo/redo strings = NULL
  53.  
  54.     virtual ~FW_CInsertCommand();
  55.  
  56. //----------------------------------------------------------------------------------------
  57. //    Inherited API
  58. //
  59. public:
  60.     // --- Don't override ---
  61.     virtual void         DoIt(Environment* ev);
  62.  
  63. //----------------------------------------------------------------------------------------
  64. //    New API
  65. //
  66. public:
  67.     // --- May override, don't call Inherited ---
  68.     virtual void         PreCommand(Environment* ev);
  69.     virtual void         CommandDone(Environment* ev);
  70.  
  71.     virtual FW_Boolean    Insert(Environment* ev);
  72.  
  73. //----------------------------------------------------------------------------------------
  74. //    Data Members
  75. //
  76. private:
  77.     FW_PFileSpecification    fFileSpec;
  78.     FW_CEmbeddingFrame*        fEmbeddingFrame;
  79. };
  80.  
  81. #endif
  82.